// Fill out your copyright notice in the Description page of Project Settings.


#include "UI/MainHUD.h"

#include "Blueprint/UserWidget.h"
#include "Enums/Enums.h"
#include "UI/MainUI.h"
#include "UI/OnlineUI.h"

AMainHUD::AMainHUD()
{
}

void AMainHUD::BeginPlay()
{
	Super::BeginPlay();
}

void AMainHUD::Tick(float DeltaSeconds)
{
	Super::Tick(DeltaSeconds);
}

void AMainHUD::DrawHUD()
{
	Super::DrawHUD();
}

void AMainHUD::InitializeWidgets()
{
	MainUI = CreateWidget<UMainUI>(GetOwningPlayerController(), MainUIClass);
	MainUI->AddToViewport();

	OnlineUI = CreateWidget<UOnlineUI>(GetOwningPlayerController(), OnlineUIClass);
}